#ifndef CFG_H
#define CFG_H

#include <QScopedPointer>
#include <QString>
#include <QMutex>

class Cfg
{
public:
    ~Cfg();

    static QString ReadScreenshotShortcut();
    static bool SaveScreenshotShortcut(const QString & qsKeySeq);
private:
    Cfg();
    Cfg(const Cfg& rhs) = delete;
    Cfg(const Cfg&& rhs) = delete;
    Cfg& operator=(const Cfg& rhs) = delete;
    const QString & GetFilePath()
    {
        return m_cfgFile;
    }
private:
    static QScopedPointer<Cfg> & GetInstance();
    static QMutex m_ptrMutex;
    static QScopedPointer<Cfg> m_self;
    QString m_cfgFile;
};

#endif // CFG_H
